﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class JobHistory : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ddlJob.DataSource = clsSQLOperations.GetJobList();
            ddlJob.DataValueField = "Urn";
            ddlJob.DataTextField = "Name";
            ddlJob.DataBind();
        }
    }
    protected void btnGetHistory_Click(object sender, EventArgs e)
    {
        grdJobHistory.DataSource = clsSQLOperations.GetJobHistory(ddlJob.SelectedItem.Text);
        grdJobHistory.DataBind();
    }
}
